﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LEV_ST_OneWireDataResolution
{
    public partial class LEV_ST_G2_OneWireDataResolution
    {
        public enum BitFlagItemsOfSystem    //analyzing from SystemStatus
        {
            // (格式必需)
            //格式: flaNgame_____FlagOfBit_Bit位置_Of_G_ItemOfSystemStatus
            // 順序勿改動，enum排列順序會當作Array的index
            //
            /////////////////////////////////////////////////////////////////////////////////
            //Module Status Control Bits
            //For G_Module_Status ; unsigned int 
            Current_Dir_CHG_____FlagOfBit_0x0001_Of_G_Module_Status,
            Current_Dir_Static_____FlagOfBit_0x0002_Of_G_Module_Status,
            Current_Dir_DSG_____FlagOfBit_0x0004_Of_G_Module_Status,
            CHG_MOS_FAIL_____FlagOfBit_0x0008_Of_G_Module_Status,
            DSG_MOS_FAIL_____FlagOfBit_0x0010_Of_G_Module_Status,
            Dynamic_UVP_____FlagOfBit_0x0020_Of_G_Module_Status,
            Module_UT_____FlagOfBit_0x0040_Of_G_Module_Status,
            Current_Dir_CHG_No_Delay_____FlagOfBit_0x0080_Of_G_Module_Status,
            Module_D_OC_____FlagOfBit_0x0100_Of_G_Module_Status,
            Module_C_OC_____FlagOfBit_0x0200_Of_G_Module_Status,
            Module_BAT_OV_____FlagOfBit_0x0400_Of_G_Module_Status,
            Module_BAT_UV_____FlagOfBit_0x0800_Of_G_Module_Status,
            None_____FlagOfBit_0x1000_Of_G_Module_Status,
            None_____FlagOfBit_0x2000_Of_G_Module_Status,
            Module_CHG_OT_____FlagOfBit_0x4000_Of_G_Module_Status,
            Module_DSG_OT_____FlagOfBit_0x8000_Of_G_Module_Status,
            /////////////////////////////////////////////////////////////////////////////////
            // G_Module_Function_Status Control Bits 
            // For G_Module_Function_Status ; unsigned int 
            ENABLE_DOC_COUNTER_____FlagOfBit_0x0001_Of_G_Module_Function_Status,
            DOC_COUNTING_FINISH_____FlagOfBit_0x0002_Of_G_Module_Function_Status,
            ENABLE_COC_COUNTER_____FlagOfBit_0x0004_Of_G_Module_Function_Status,
            COC_COUNTING_FINISH_____FlagOfBit_0x0008_Of_G_Module_Function_Status,
            COC_RELEASE_FOR_REPEATED_CHECK_____FlagOfBit_0x0010_Of_G_Module_Function_Status,
            Module_C_OC_LOCK_____FlagOfBit_0x0020_Of_G_Module_Function_Status,
            LOW_TEMP_SOC_SET_____FlagOfBit_0x0040_Of_G_Module_Function_Status,
            Auto_Sleeping_Entry_____FlagOfBit_0x0080_Of_G_Module_Function_Status,
            DSG_LOW_OTA_____FlagOfBit_0x0100_Of_G_Module_Function_Status,
            DSG_HIGH_OTA_____FlagOfBit_0x0200_Of_G_Module_Function_Status,
            DSG_HIGH_CURRENT_FOR_OT_____FlagOfBit_0x0400_Of_G_Module_Function_Status,
            USE_DSG_HIGH_OT_SETTING_____FlagOfBit_0x0800_Of_G_Module_Function_Status,
            INITIAL_CHARGING_TEMP_RANGE_____FlagOfBit_0x1000_Of_G_Module_Function_Status,
            SW_PRESS_FOR_TURN_OFF_DSG_____FlagOfBit_0x2000_Of_G_Module_Function_Status,
            After_UVP_Delay_Counting_Done_____FlagOfBit_0x4000_Of_G_Module_Function_Status,
            SYS_1_SEC_FLAG_____FlagOfBit_0x8000_Of_G_Module_Function_Status,

            ///////////////////////////////////////////////////////////////////////////////////
            // G_Add_Module_Function_Status Control Bits  
            //For G_Add_Module_Function_Status ; unsigned int  
            BUTTON_PRESS_____FlagOfBit_0x0001_Of_G_Add_Module_Function_Status,
            BUTTON_LONG_PRESS_____FlagOfBit_0x0002_Of_G_Add_Module_Function_Status,
            BUTTON_CLICK_____FlagOfBit_0x0004_Of_G_Add_Module_Function_Status,
            BUTTON_CLICK_For_COC_LOCK_____FlagOfBit_0x0008_Of_G_Add_Module_Function_Status,
            ENABLE_MULTI_CLICK_COUNTER_____FlagOfBit_0x0010_Of_G_Add_Module_Function_Status,
            BUTTON_COMPLETE_MULTI_CLICK_____FlagOfBit_0x0020_Of_G_Add_Module_Function_Status,
            Breathing_Light_START_____FlagOfBit_0x0040_Of_G_Add_Module_Function_Status,
            Breathing_Light_FINISH_____FlagOfBit_0x0080_Of_G_Add_Module_Function_Status,
            ONE_WIRE_UART_SET_ENABLE_____FlagOfBit_0x0100_Of_G_Add_Module_Function_Status,
            ONE_WIRE_DISABLE_BY_CHG_____FlagOfBit_0x0200_Of_G_Add_Module_Function_Status,
            ONE_WIRE_TEMPORARY_START_COUNT_____FlagOfBit_0x0400_Of_G_Add_Module_Function_Status,
            ONE_WIRE_Send_EEPROM_Data_____FlagOfBit_0x0800_Of_G_Add_Module_Function_Status,
            ONE_WIRE_TRANSMIT_ALWAYS_____FlagOfBit_0x1000_Of_G_Add_Module_Function_Status,
            ONE_WIRE_TRANSMIT_ONCE_BY_CMD_____FlagOfBit_0x2000_Of_G_Add_Module_Function_Status,
            ENABLE_USB_POWER_OUTPUT_____FlagOfBit_0x4000_Of_G_Add_Module_Function_Status,
            OCP_FOR_USB_POWER_OUTPUT_____FlagOfBit_0x8000_Of_G_Add_Module_Function_Status,
            ///////////////////////////////////////////////////////////////////////////////////
            // Driver G_Device_Interface_Status Control Bits 
            // For G_Device_Interface_Status ; unsigned int  
            CHG_MOSFET_TurnON_____FlagOfBit_0x0001_Of_G_Device_Interface_Status,
            DSG_MOSFET_TurnON_____FlagOfBit_0x0002_Of_G_Device_Interface_Status,
            ADC_CONVERSION_____FlagOfBit_0x0004_Of_G_Device_Interface_Status,
            ADP_SOC_STATUS_____FlagOfBit_0x0008_Of_G_Device_Interface_Status,
            ONE_WIRE_ENABLE_STATUS_____FlagOfBit_0x0010_Of_G_Device_Interface_Status,
            UART_ISOLATE_ENABLE_STATUS_____FlagOfBit_0x0020_Of_G_Device_Interface_Status,
            NTC_ENABLE_STATUS_____FlagOfBit_0x0040_Of_G_Device_Interface_Status,
            POLLING_TIMER_ENABLE_STATUS_____FlagOfBit_0x0080_Of_G_Device_Interface_Status,
            SYS_INFO_RECORD_TO_EEPROM_____FlagOfBit_0x0100_Of_G_Device_Interface_Status,
            BackLight_BUTTON_PRESS_____FlagOfBit_0x0200_Of_G_Device_Interface_Status,
            BackLight_BUTTON_CLICK_____FlagOfBit_0x0400_Of_G_Device_Interface_Status,
            BackLight_LED_OnOff_Status_____FlagOfBit_0x0800_Of_G_Device_Interface_Status,
            BackLight_Constant_ON_____FlagOfBit_0x1000_Of_G_Device_Interface_Status,
            BackLight_Blinking_____FlagOfBit_0x2000_Of_G_Device_Interface_Status,
            HW_CHG_Status_____FlagOfBit_0x4000_Of_G_Device_Interface_Status,
            HW_DSG_Status_____FlagOfBit_0x8000_Of_G_Device_Interface_Status,
            /////////////////////////////////////////////////////////////////////////////////
            // Driver G_Extend_Device_Interface_Status Control Bits  
            // For G_Extend_Device_Interface_Status ; unsigned int 
            EPO_SW_Signal_____FlagOfBit_0x0001_Of_G_Extend_Device_Interface_Status,
            LOAD_PreCHARGE_____FlagOfBit_0x0002_Of_G_Extend_Device_Interface_Status,
            UART_RX_IT_STATUS_____FlagOfBit_0x0004_Of_G_Extend_Device_Interface_Status,
            UART_RX_FRAME_DONE_____FlagOfBit_0x0008_Of_G_Extend_Device_Interface_Status,
            UART_RX_PrecedingCode_Find_____FlagOfBit_0x0010_Of_G_Extend_Device_Interface_Status,
            UART_RX_EndingCode_Find_____FlagOfBit_0x0020_Of_G_Extend_Device_Interface_Status,
            UART_RX_FRAME_ADDRESS_FAIL_____FlagOfBit_0x0040_Of_G_Extend_Device_Interface_Status,
            UART_RX_FRAME_PACKET_FAIL_____FlagOfBit_0x0080_Of_G_Extend_Device_Interface_Status,
            Force_DSG_MOS_OFF_____FlagOfBit_0x0100_Of_G_Extend_Device_Interface_Status,
            Force_CHG_MOS_OFF_____FlagOfBit_0x0200_Of_G_Extend_Device_Interface_Status,
            HasSleptOnce_____FlagOfBit_0x0400_Of_G_Extend_Device_Interface_Status,
            Ext_DSG_OT_____FlagOfBit_0x0800_Of_G_Extend_Device_Interface_Status,
            SYS_Setting_SEC_FLAG_____FlagOfBit_0x1000_Of_G_Extend_Device_Interface_Status,
            ONE_WIRE_TRANSMIT_BySettingTime_____FlagOfBit_0x2000_Of_G_Extend_Device_Interface_Status,
            None_____FlagOfBit_0x4000_Of_G_Extend_Device_Interface_Status,
            None_____FlagOfBit_0x8000_Of_G_Extend_Device_Interface_Status,
            /////////////////////////////////////////////////////////////////////////////////
            /* G_Capacity_Var_Bits_Status Bits */
            /* For G_Capacity_Var_Bits_Status ; unsigned int */
            Timer_Polling_XOR_Flag_____FlagOfBit_0x0001_Of_G_Capacity_Var_Bits_Status,
            CAP_1_SEC_FLAG_____FlagOfBit_0x0002_Of_G_Capacity_Var_Bits_Status,
            Polling_Set_CHG_Capacity_Displaying_____FlagOfBit_0x0004_Of_G_Capacity_Var_Bits_Status,
            CAP_FUN_Interrupt_Exec_ON_____FlagOfBit_0x0008_Of_G_Capacity_Var_Bits_Status,
            START_COUNT_FCC_____FlagOfBit_0x0010_Of_G_Capacity_Var_Bits_Status,
            CHG_FCC_SET_____FlagOfBit_0x0020_Of_G_Capacity_Var_Bits_Status,
            FCC_1_SEC_FLAG_____FlagOfBit_0x0040_Of_G_Capacity_Var_Bits_Status,
            CAP_UPDATED_ONEC_____FlagOfBit_0x0080_Of_G_Capacity_Var_Bits_Status,
            Capacity_Showing_Hold_____FlagOfBit_0x0100_Of_G_Capacity_Var_Bits_Status,
            Capacity_Hold_In_CHG_____FlagOfBit_0x0200_Of_G_Capacity_Var_Bits_Status,
            User_Set_DSG_Capacity_Displaying_____FlagOfBit_0x0400_Of_G_Capacity_Var_Bits_Status,
            User_Set_DSG_Capacity_Displaying_FINISH_____FlagOfBit_0x0800_Of_G_Capacity_Var_Bits_Status,
            Cap_Hold_DSG_To_Static_____FlagOfBit_0x1000_Of_G_Capacity_Var_Bits_Status,
            Cap_Hold_CHG_To_Static_____FlagOfBit_0x2000_Of_G_Capacity_Var_Bits_Status,
            Cap_Defference_Delay_Count_Flag_____FlagOfBit_0x4000_Of_G_Capacity_Var_Bits_Status,
            Cap_Defference_Delay_Finish_Flag_____FlagOfBit_0x8000_Of_G_Capacity_Var_Bits_Status,
            ///////////////////////////////////////////////////////////////////////////////////
            // G_System_Device_Extend_1_Status Control Bits  
            // For G_System_Device_Extend_1_Status ; unsigned int  
            LOAD_PreCHARGE_Action_Start_____FlagOfBit_0x0001_Of_G_System_Device_Extend_1_Status,
            LOAD_PreCHARGE_Action_Finish_____FlagOfBit_0x0002_Of_G_System_Device_Extend_1_Status,
            GSM_Power_Ststus_____FlagOfBit_0x0004_Of_G_System_Device_Extend_1_Status,
            GSM_Comm_InterLock_____FlagOfBit_0x0008_Of_G_System_Device_Extend_1_Status,
            Shake_Switch_Trigger_____FlagOfBit_0x0010_Of_G_System_Device_Extend_1_Status,
            Shake_Switch_Hit_1st_____FlagOfBit_0x0020_Of_G_System_Device_Extend_1_Status,
            GSM_Cmd_System_TurnOff_DSG_____FlagOfBit_0x0040_Of_G_System_Device_Extend_1_Status,
            GSM_Cmd_Chk_DSG_OFF_Status_____FlagOfBit_0x0080_Of_G_System_Device_Extend_1_Status,
            GSM_Send_SystemDataToGSM_____FlagOfBit_0x0100_Of_G_System_Device_Extend_1_Status,
            GSM_ResetEnterSleepCountInStatic_____FlagOfBit_0x0200_Of_G_System_Device_Extend_1_Status,
            GSM_EnterSleepInStatic_____FlagOfBit_0x0400_Of_G_System_Device_Extend_1_Status,
            GSM_InterLockDelayCounter_____FlagOfBit_0x0800_Of_G_System_Device_Extend_1_Status,
            GSM_InterLockDelayFinish_____FlagOfBit_0x1000_Of_G_System_Device_Extend_1_Status,
            GSM_SendDataToGSMInSleeping_____FlagOfBit_0x2000_Of_G_System_Device_Extend_1_Status,
            GSM_SendDataToGSMInSleepReadyCounterFinish_____FlagOfBit_0x4000_Of_G_System_Device_Extend_1_Status,
            GSM_Cmd_To_SleepingStatus_____FlagOfBit_0x8000_Of_G_System_Device_Extend_1_Status,
            ///////////////////////////////////////////////////////////////////////////////////
            ///////////////////////////////////////////////////////////////////////////////////
            // G_System_Device_Extend_2_Status Control Bits 
            // For G_System_Device_Extend_2_Status ; unsigned int 
            GSM_SendDummyDataFromSleepWakeup_____FlagOfBit_0x0001_Of_G_System_Device_Extend_2_Status,
            GSM_ShakeSW_SystemInStaticMode_____FlagOfBit_0x0002_Of_G_System_Device_Extend_2_Status,
            Set_ShakeSW_WakeUp_Disable_____FlagOfBit_0x0004_Of_G_System_Device_Extend_2_Status,
            Set_GSM_WakeUp_Disable_____FlagOfBit_0x0008_Of_G_System_Device_Extend_2_Status,
            None_____FlagOfBit_0x0010_Of_G_System_Device_Extend_2_Status,
            None_____FlagOfBit_0x0020_Of_G_System_Device_Extend_2_Status,
            None_____FlagOfBit_0x0040_Of_G_System_Device_Extend_2_Status,
            None_____FlagOfBit_0x0080_Of_G_System_Device_Extend_2_Status,
            RTC_Trigger_Flag_____FlagOfBit_0x0100_Of_G_System_Device_Extend_2_Status,
            None_____FlagOfBit_0x0200_Of_G_System_Device_Extend_2_Status,
            None_____FlagOfBit_0x0400_Of_G_System_Device_Extend_2_Status,
            None_____FlagOfBit_0x0800_Of_G_System_Device_Extend_2_Status,
            None_____FlagOfBit_0x1000_Of_G_System_Device_Extend_2_Status,
            None_____FlagOfBit_0x2000_Of_G_System_Device_Extend_2_Status,
            None_____FlagOfBit_0x4000_Of_G_System_Device_Extend_2_Status,
            None_____FlagOfBit_0x8000_Of_G_System_Device_Extend_2_Status
        }

    }//public partial class OneWireDataResolution
}//namespace LEV_ST_OneWireDataResolution
